package com.gp.learn.ssm.base.system.init;

import com.gp.learn.ssm.base.core.redis.RedisUtils;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class InitTestRedis implements InitializingBean {

    @Autowired
    private RedisUtils redisUtils;

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("-----------redis集成测试----------");
        redisUtils.set("redis1111","redis集成测试");
    }
}
